package javax;

/**
 * Created by xupeng20 on 2019/1/7.
 */
public class XpUtils {
    /**
     * @throws
     * @description: 逆序
     * @author xupeng20
     * @date 2019/1/4 14:47
     */
    public static int[] swap(int[] arr, int i, int j) {
        int temp = arr[i];
        arr[i] = arr[j];
        arr[j] = temp;
        return arr;
    }
    /**
     * @throws
     * @description: 输出
     * @author xupeng20
     * @date 2019/1/4 14:48
     */

    public static void print(int[] arr) {
        for (int i = 0 ;i<arr.length;i++){
            System.out.print(arr[i]);
        }
    }
}
